rd ".\Packages" /Q /S

echo Create Visual Studio 2008 templates

echo C#
xcopy ".\Source\CSharp\VS2008\Common\*" ".\Packages\VS2008\CSharp\ProjectTemplates\Temp\" /Y /S
xcopy ".\Source\CSharp\VS2008\DreamDriven.vstemplate" ".\Packages\VS2008\CSharp\ProjectTemplates\Temp\" /Y
xcopy ".\Source\CSharp\VS2008\template.ico" ".\Packages\VS2008\CSharp\ProjectTemplates\Temp\" /Y
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2008\CSharp\ProjectTemplates\DreamDriven.zip" ".\Packages\VS2008\CSharp\ProjectTemplates\Temp\*"
rd ".\Packages\VS2008\CSharp\ProjectTemplates\Temp" /Q /S

echo C# Web
xcopy ".\Source\CSharp\VS2008\Common\*" ".\Packages\VS2008\CSharp\ProjectTemplates\Temp\" /Y /S
xcopy ".\Source\CSharp\VS2008\Web\*" ".\Packages\VS2008\CSharp\ProjectTemplates\Temp\" /Y /S
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2008\CSharp\ProjectTemplates\Web\DreamDriven.zip" ".\Packages\VS2008\CSharp\ProjectTemplates\Temp\*"
rd ".\Packages\VS2008\CSharp\ProjectTemplates\Temp" /Q /S

echo C# Project Items
xcopy ".\Source\CSharp\Common\*" ".\Packages\VS2008\CSharp\ItemTemplates\Temp\" /Y /S
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2008\CSharp\ItemTemplates\Common\DataObject.zip" ".\Packages\VS2008\CSharp\ItemTemplates\Temp\DataObject\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2008\CSharp\ItemTemplates\Common\Repository.zip" ".\Packages\VS2008\CSharp\ItemTemplates\Temp\Repository\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2008\CSharp\ItemTemplates\Common\BusinessLogicManager.zip" ".\Packages\VS2008\CSharp\ItemTemplates\Temp\BusinessLogicManager\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2008\CSharp\ItemTemplates\Common\DomainModel.zip" ".\Packages\VS2008\CSharp\ItemTemplates\Temp\DomainModel\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2008\CSharp\ItemTemplates\Common\IView.zip" ".\Packages\VS2008\CSharp\ItemTemplates\Temp\IView\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2008\CSharp\ItemTemplates\Common\Presenter.zip" ".\Packages\VS2008\CSharp\ItemTemplates\Temp\Presenter\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2008\CSharp\ItemTemplates\Common\IService.zip" ".\Packages\VS2008\CSharp\ItemTemplates\Temp\IService\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2008\CSharp\ItemTemplates\Web\DreamDrivenWebForm.zip" ".\Packages\VS2008\CSharp\ItemTemplates\Temp\WebForm\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2008\CSharp\ItemTemplates\Web\DreamDrivenWebUserControl.zip" ".\Packages\VS2008\CSharp\ItemTemplates\Temp\WebUserControl\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2008\CSharp\ItemTemplates\Web\DreamDrivenMasterPage.zip" ".\Packages\VS2008\CSharp\ItemTemplates\Temp\MasterPage\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2008\CSharp\ItemTemplates\Web\DreamDrivenApplication.zip" ".\Packages\VS2008\CSharp\ItemTemplates\Temp\GlobalAsax\*"
rd ".\Packages\VS2008\CSharp\ItemTemplates\Temp" /Q /S


echo Create Visual Studio 2010 templates

echo C#
xcopy ".\Source\CSharp\VS2010\Common\*" ".\Packages\VS2010\CSharp\ProjectTemplates\Temp\" /Y /S
xcopy ".\Source\CSharp\VS2010\DreamDriven.vstemplate" ".\Packages\VS2010\CSharp\ProjectTemplates\Temp\" /Y
xcopy ".\Source\CSharp\VS2010\template.ico" ".\Packages\VS2010\CSharp\ProjectTemplates\Temp\" /Y
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2010\CSharp\ProjectTemplates\DreamDriven.zip" ".\Packages\VS2010\CSharp\ProjectTemplates\Temp\*"
rd ".\Packages\VS2010\CSharp\ProjectTemplates\Temp" /Q /S

echo C# Web
xcopy ".\Source\CSharp\VS2010\Common\*" ".\Packages\VS2010\CSharp\ProjectTemplates\Temp\" /Y /S
xcopy ".\Source\CSharp\VS2010\Web\*" ".\Packages\VS2010\CSharp\ProjectTemplates\Temp\" /Y /S
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2010\CSharp\ProjectTemplates\Web\DreamDriven.zip" ".\Packages\VS2010\CSharp\ProjectTemplates\Temp\*"
rd ".\Packages\VS2010\CSharp\ProjectTemplates\Temp" /Q /S

echo C# Project Items
xcopy ".\Source\CSharp\Common\*" ".\Packages\VS2010\CSharp\ItemTemplates\Temp\" /Y /S
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2010\CSharp\ItemTemplates\Common\DataObject.zip" ".\Packages\VS2010\CSharp\ItemTemplates\Temp\DataObject\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2010\CSharp\ItemTemplates\Common\Repository.zip" ".\Packages\VS2010\CSharp\ItemTemplates\Temp\Repository\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2010\CSharp\ItemTemplates\Common\BusinessLogicManager.zip" ".\Packages\VS2010\CSharp\ItemTemplates\Temp\BusinessLogicManager\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2010\CSharp\ItemTemplates\Common\DomainModel.zip" ".\Packages\VS2010\CSharp\ItemTemplates\Temp\DomainModel\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2010\CSharp\ItemTemplates\Common\IView.zip" ".\Packages\VS2010\CSharp\ItemTemplates\Temp\IView\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2010\CSharp\ItemTemplates\Common\Presenter.zip" ".\Packages\VS2010\CSharp\ItemTemplates\Temp\Presenter\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2010\CSharp\ItemTemplates\Common\IService.zip" ".\Packages\VS2010\CSharp\ItemTemplates\Temp\IService\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2010\CSharp\ItemTemplates\Web\DreamDrivenWebForm.zip" ".\Packages\VS2010\CSharp\ItemTemplates\Temp\WebForm\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2010\CSharp\ItemTemplates\Web\DreamDrivenWebUserControl.zip" ".\Packages\VS2010\CSharp\ItemTemplates\Temp\WebUserControl\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2010\CSharp\ItemTemplates\Web\DreamDrivenMasterPage.zip" ".\Packages\VS2010\CSharp\ItemTemplates\Temp\MasterPage\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip ".\Packages\VS2010\CSharp\ItemTemplates\Web\DreamDrivenApplication.zip" ".\Packages\VS2010\CSharp\ItemTemplates\Temp\GlobalAsax\*"
rd ".\Packages\VS2010\CSharp\ItemTemplates\Temp" /Q /S



